// pages/transfer/index.js
const app = getApp();
var call = require("../../utils/request.js");
var util = require('../../utils/util.js');
Page({

  /**
   * 页面的初始数据
   */
  data: {
      url:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    that.getUrl();
  },


  getUrl: function(){
    var that = this;
    call.request('/api/user/getauth', {},
      function (res) {
        console.log(res.data.url);
        that.setData({
          url: res.data.url
        });
          
      }, function (err) {
        
      })
  }


})